[PATCH] af-packet: fix build on recent Linux kernels
authorEric Leblond <eric@regit.org>
Wed, 17 Jul 2019 10:35:12 +0000 (12:35 +0200)
committerAndreas Dolp <dev@andreas-dolp.de>
Thu, 6 Nov 2025 16:36:49 +0000 (17:36 +0100)
Gbp-Pq: Name import-sockio-h.patch

src/source-af-packet.c

index e5c2c23fc4c1b5f13c70463678816b831154454f..7ab0f04e8af6e28a2d0b976ee0ef46ad9c030ec4 100644 (file)
 #include <linux/sockios.h>
 #endif
 
+#if HAVE_LINUX_SOCKIOS_H
+#include <linux/sockios.h>
+#endif
+
 #ifdef HAVE_PACKET_EBPF
 #define PCAP_DONT_INCLUDE_PCAP_BPF_H 1
 #include <bpf/libbpf.h>